package com.liveinstars.common;

import java.util.List;

/**
 * @author ting
 * @version v1.0
 * @ClassName: Page
 * @Description: TODO
 * @date 2019-03-27
 */
public class Page<T> {

    /**
     * 记录数据
     */
    private List<T> list;

    /**
     * 当前页码
     */
    private Integer pageNum;

    /**
     * 页面大小
     */
    private Integer pageSize;

    /**
     * 总记录数
     */
    private Integer totalCount;

    public Page(List<T> list, Integer pageNum, Integer pageSize, Integer totalCount) {
        this.list = list;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.totalCount = totalCount;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }
}
